<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib tagdir="/WEB-INF/tags/template" prefix="t" %>
<%@ taglib tagdir="/WEB-INF/tags/componentes" prefix="comp" %>

<t:template>
	<jsp:body>
		<div class="contact_form">
			<form action="${pageContext.request.contextPath}/cliente/insert" method="POST">
				<div class="form_subtitle">Cadastro de Cliente</div>
				
				<input name="cliente.pkCodigo" value="${cliente.pkCodigo}" readonly="readonly" type="hidden" class="contact_input"/>
				
				<div class="form_row">
					<label class="contact"><strong>Nome:</strong></label>
					<input name="cliente.dsNome" value="${cliente.dsNome}" type="text" class="contact_input"/>
				</div>
				
				<div class="form_row">
					<label class="contact"><strong>Telefone:</strong></label>
					<input name="cliente.dsTelefone" value="${cliente.dsTelefone}" type="text" class="contact_input"/>
				</div>
				
				<div class="form_row">
					<label class="contact"><strong>Endereço:</strong></label>
					<input name="cliente.dsEndereco" value="${cliente.dsEndereco}" type="text" class="contact_input"/>
				</div>
				
				<comp:messages />
				
				<div class="form_row">
					<button type="submit" class="button">Salvar</button>
				</div>				
			</form>
		</div>
	</jsp:body>
</t:template>